package com.turtle.entity.sql;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.TimeZone;

/**
 * @author lijiayu
 * @date 2020/7/24
 * @description
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EsBlog {

    private Long id;

    @JSONField(format = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
    private ZonedDateTime updateTime;

    @Field(analyzer = "ik_max_word" ,type = FieldType.Text)
    private String content;

//    滚动排序
//    private Float score;
}
